package org.mdrtwell.junit;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

public class LargestTestWithJunit4 {
	private Largest	largest;

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
		largest = new Largest();
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	@Ignore
	public void testDrawoffLargest() {
		int[] nums = new int[] { 3, 534, 0, 54, 222 };
		int max = largest.drawoffLargest(nums);
		assertEquals(534, max);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testDrawoffLargestNull() {
		int max = largest.drawoffLargest(null);
	}
}
